/**
 * @Author: zhengcong
 * @Date: 2019/8/14
 * @Last Modified by: zhengcong
 * @Last Modified time: 2019-08-14 19:26:41
 */
import axios from '@/api/fetch';
import * as types from './types';
import SERVER from '@/api/server';

export const getPartCostAdjustData = params => axios.get(`${SERVER.DMSCLOUD_PART}/basedata/partcostadjusts`, { params });

export const modifyPartCostPrice = (params, partNo, storageCode) => axios.put(`${SERVER.DMSCLOUD_PART}/basedata/partcostadjusts/aa/${partNo}/${storageCode}`, params);

export const modifyPartPlanPrice = (params, partNo, storageCode) => axios.put(`${SERVER.DMSCLOUD_PART}/basedata/partcostadjusts/bb/${partNo}/${storageCode}`, params);

export const test = params => axios.get(`${SERVER.DMSCLOUD_PART}/pGenPartMonreportTask`, {});

/*

// 品牌查询
export const getBrands = params => axios.get(`${SERVER.DMSCLOUD_SYSBASEDATA}/vehicleProduct/brands`, { params });

// 新增品牌
export const addBrand = params => axios.post(`${SERVER.DMSCLOUD_SYSBASEDATA}/vehicleProduct/brands`, params);

// 修改一个品牌
export const updateBrand = (params, id) => axios.put(`${SERVER.DMSCLOUD_SYSBASEDATA}/vehicleProduct/brands/${id}`, params);

// 查询品牌下拉框
export const getBrandList = params => axios.get(`${SERVER.DMSCLOUD_SYSBASEDATA}/vehicleProduct/brandsqueryall`, { params });

// 条件查询车系
export const getSeries = params => axios.get(`${SERVER.DMSCLOUD_SYSBASEDATA}/vehicleProduct/seriess`, { params });

//  新增一个车系
export const addSeries = params => axios.post(`${SERVER.DMSCLOUD_SYSBASEDATA}/vehicleProduct/seriess`, params);

//  条件查询车型
export const getModels = params => axios.get(`${SERVER.DMSCLOUD_SYSBASEDATA}/vehicleProduct/models`, { params });

//  新增一个车型
export const addModel = params => axios.post(`${SERVER.DMSCLOUD_SYSBASEDATA}/vehicleProduct/models`, params);

//  条件查询配置配置
export const getPackages = params => axios.get(`${SERVER.DMSCLOUD_SYSBASEDATA}/vehicleProduct/packages`, { params });

//  新增一个配置
export const addPackage = params => axios.post(`${SERVER.DMSCLOUD_SYSBASEDATA}/vehicleProduct/packages`, params);

//  查询车系 下拉框
export const getSeriesListByBrand = (id, params) => axios.get(`${SERVER.DMSCLOUD_SYSBASEDATA}/vehicleProduct/brandsdict/${id}/seriessdict`, { params });

//  查询车型 下拉框
export const getModelListBySeries = (brandsid, seriessid, params) => axios.get(`${SERVER.DMSCLOUD_SYSBASEDATA}/vehicleProduct/brandsdict/${brandsid}/seriessdict/${seriessid}/modelsdict`, { params });

*/
